
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

@Entity
@Table(name="PIZZA")
public class Pizza implements Serializable{
	@Id
	@GeneratedValue
	long id;
	@Column(name="name")
	private String name;
	@Column(name="description")
	private String descriptions;
	@Column(name="avatar")
	private ImageIcon avatar;
	
	public Pizza(String name, String descriptions, ImageIcon avatar) {
		super();
		this.name = name;
		this.descriptions = descriptions;
		this.avatar = avatar;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescriptions() {
		return descriptions;
	}
	public void setDescriptions(String descriptions) {
		this.descriptions = descriptions;
	}
	public ImageIcon getAvatar() {
		return avatar;
	}
	public void setAvatar(ImageIcon avatar) {
		this.avatar = avatar;
	}
	
}
